dojo.declare("DVendorOrderHistoryPg", wm.Page, {
    start: function() {

    },
    "preferredDevice": "desktop",

    list1OrderIdFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
        var comment = '';
        if (rowObj.comments != null) comment = rowObj.comments;
        var display = "<div class='MobileRowTitle'><b>Order#:</b> " + rowObj.orderId + "</div>" + "<div class='MobileRow'>" + wm.List.prototype.dateFormatter({
            "formatLength": "medium",
            "dateType": "date and time"
        }, null, null, null, rowObj.orderDt) + "</div>" + "<div class='MobileRow'>Comments: " + comment + "</div>";
        return display;
    },
    list1StatusFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
        var display = "<div class='MobileRowTitle'><b>Status :</b> </br> " + rowObj.status + "</div>";
        return display;
    },
    list1Select1: function(inSender, inItem) {
        this.selectMenu1.setDataValue("Delivered");
    },
    list2OrderItemIdFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
        var comment = '';
        if (rowObj.comments != null) {
            comment = rowObj.comments;
        }
        console.log();
        var display = "<div class='MobileRow'>Item Name: " + rowObj.items.itemName + "</div>" + "<div class='MobileRow'>Item Desc: " + rowObj.items.itemDesc + "</div>" + "<div class='MobileRowTitle'>Quantity: " + rowObj.quantity + "</div>" + "<div class='MobileRow'>Price: " + rowObj.price + "</div>" + "<div class='MobileRow'>Comments: " + comment + "</div>";
        return display;

    },
    button1Click1: function(inSender) {
        this.lvMyOrders.clearData();
    },
    _end: 0
});